package feng.demo.dao;

import feng.demo.entity.Remark;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface RemarkDao {

    List<Remark> findAll();
    Remark findById(Integer remid);
    List<Remark> findRemark(Map<String,Object> map);
    int add(Remark remark);
    int del(Integer remid);
    int update(Remark remark);
    List <Remark> findByAllLimit(@Param("pagenum") Integer pagenum, @Param("lines")Integer lines);
    int findCount();
    List<Remark> findByComid(Integer comid);

}
